<?php
	namespace app\models\captcha;
	use yii\base\Model;
	class Code extends Model{
		public $code;
		public function rules(){

			return [
			//code为验证码名称
			//captcha为验证方法,实现方法在controller里面定义
			'code','captcha','captchaAction'=>'code/captcha','message'=>'验证码不正确'
			];
		}
	}
?>